package org.celery.modules.goods.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.goods.entity.GoodsSpecification;
import org.celery.modules.goods.vo.GoodsSpecificationVO;

/**
 * 商品规格表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2021-10-28
 */
public class GoodsSpecificationWrapper extends BaseEntityWrapper<GoodsSpecification, GoodsSpecificationVO>  {

    public static GoodsSpecificationWrapper build() {
        return new GoodsSpecificationWrapper();
    }

	@Override
	public GoodsSpecificationVO entityVO(GoodsSpecification goodsSpecification) {
		GoodsSpecificationVO goodsSpecificationVO = BeanUtil.copy(goodsSpecification, GoodsSpecificationVO.class);

		return goodsSpecificationVO;
	}

}
